package com.beasts.ant.page.repository;

import com.beasts.ant.page.entity.APGroupPage;
import com.beasts.ant.page.entity.Layout;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author cn_zkn
 * @date 20/04/2018 11:04 AM
 * @since 1.0
 */
public interface InitDataRepository extends JpaRepository<APGroupPage, Long> {

    APGroupPage findAllByName(String name);

    List<APGroupPage> findByPageTypeOrderByPageOrderAsc(String pageType);

}
